var LGXEnums = {

}

LGXEnums.LGXPosMode = {

}


LGXEnums.LGXPosMode.point_mode = 1;
LGXEnums.LGXPosMode.multiPt_Mode = 2;
LGXEnums.LGXPosMode.arc_mode = 3;
LGXEnums.LGXPosMode.circle_mode = 4;
LGXEnums.LGXPosMode.rect_mode = 5;
LGXEnums.LGXPosMode.pathLinke_mode = 6;
LGXEnums.LGXPosMode.ellipseArc_mode = 7;
LGXEnums.LGXPosMode.ellipse_mode = 8;
LGXEnums.LGXPosMode.hatch_mode = 9;
LGXEnums.LGXPosMode.ellipseArc_mode = 10;
LGXEnums.LGXPosMode.lwpolyline_mode = 11;
LGXEnums.LGXPosMode.spline_mode = 12;


LGXEnums.LGXPlotState = {

}

LGXEnums.LGXPlotState.NoneState = "NoneState";
LGXEnums.LGXPlotState.AppendPtState = "AppendPtState";
LGXEnums.LGXPlotState.OKState = "OKState";
LGXEnums.LGXPlotState.ErrorState = "ErrorState";
LGXEnums.LGXPlotState.FinistState = "FinistState";


LGXEnums.LGXLineMode = {

}

LGXEnums.LGXLineMode.NoPen = 0;
LGXEnums.LGXLineMode.Solid = 1;
LGXEnums.LGXLineMode.Dash_Dash = 2;
LGXEnums.LGXLineMode.Dash_Dot = 3;
LGXEnums.LGXLineMode.Dash_DashDot = 4;
LGXEnums.LGXLineMode.Dash_DashDotDot = 5;


LGXEnums.LGXLineJoin = {

}
LGXEnums.LGXLineJoin.Bevel = 0;
LGXEnums.LGXLineJoin.Miter = 1;
LGXEnums.LGXLineJoin.Round = 2;

LGXEnums.LGXLineCap = {

}

LGXEnums.LGXLineCap.Flat = 0;
LGXEnums.LGXLineCap.Square = 1;
LGXEnums.LGXLineCap.Round = 2;

//填充模式
LGXEnums.LGXFillStyle = {

}

LGXEnums.LGXFillStyle.EMPTY = 0;			//无颜色
LGXEnums.LGXFillStyle.SOLID = 1;				//纯色

//以下为线性渐变
LGXEnums.LGXFillStyle.lineGradient_L_TO_R = 2;				//左-右
LGXEnums.LGXFillStyle.lineGradient_R_TO_L = 3;				//右-左
LGXEnums.LGXFillStyle.lineGradient_T_TO_B = 4;				//上-下
LGXEnums.LGXFillStyle.lineGradient_B_TO_T = 5;				//下-上

LGXEnums.LGXFillStyle.lineGradient_LT_TO_RB = 6;				//左上-右下
LGXEnums.LGXFillStyle.lineGradient_LB_TO_RT = 7;				//左下-右上
LGXEnums.LGXFillStyle.lineGradient_RT_TO_LB = 8;				//右上-左下
LGXEnums.LGXFillStyle.lineGradient_RB_TO_LT = 9;				//右下-左上

LGXEnums.LGXFillStyle.lineGradient_L_M_R = 10;				//左-中-右
LGXEnums.LGXFillStyle.lineGradient_R_M_L = 11;				//右-中-左
LGXEnums.LGXFillStyle.lineGradient_T_M_B = 12;				//上-中-下
LGXEnums.LGXFillStyle.lineGradient_B_M_T = 13;				//下-中-上

LGXEnums.LGXFillStyle.lineGradient_LT_M_RB = 14;			//左上-中-右下
LGXEnums.LGXFillStyle.lineGradient_RB_M_LT = 15;			//左上-中-右下
LGXEnums.LGXFillStyle.lineGradient_RT_M_LB = 16;			//右上-中-左下
LGXEnums.LGXFillStyle.lineGradient_LB_M_RT = 17;			//右上-中-左下
LGXEnums.LGXFillStyle.lineGradient_complex = 18;			//复杂，可自定义多个控制点，旋转角度
//以下为辐射渐变
LGXEnums.LGXFillStyle.Radial_CenterToTopMid = 19;
LGXEnums.LGXFillStyle.radialGradient_complex = 20;			//复杂，可自定义多个控制点，旋转角度

LGXEnums.LGXFillStyle.pattern_l2rSlope = 21;			//线左至右倾斜45度填充
LGXEnums.LGXFillStyle.pattern_r2lSlope = 22;			//线右至左倾斜45度填充
LGXEnums.LGXFillStyle.pattern_r2lStraight = 23;			//线右至左倾斜45度填充
LGXEnums.LGXFillStyle.pattern_t2bStraight = 24;			//线右至左倾斜45度填充

LGXEnums.LGXFillStyle.pattern = 25;			//复杂图案填充

LGXEnums.ModifyType = {

}

LGXEnums.ModifyType.NoneType_mod = 0;//无变动
LGXEnums.ModifyType.InsertNewType = 1;//新增标记
LGXEnums.ModifyType.ModifiedType = 2;//修改标记
LGXEnums.ModifyType.deleteType = 3;//删除


LGXEnums.LGXGraphType = {

}

LGXEnums.LGXGraphType.AbstractGraph_type = "invalid_Graph";
LGXEnums.LGXGraphType.MultiPointsGraph_type = "multipt_Graph";
LGXEnums.LGXGraphType.TextGraph_type = "text_Graph";
LGXEnums.LGXGraphType.LineGraph_type = "line_Graph";
LGXEnums.LGXGraphType.ScrawlLnGraph_type = "crawline_Graph";//涂鸦
LGXEnums.LGXGraphType.RectGraph_type = "rect_Graph";
LGXEnums.LGXGraphType.EllipseGraph_type = "ellipse_Graph";
LGXEnums.LGXGraphType.CircleGraph_type = "circle_Graph";
LGXEnums.LGXGraphType.PolygonGraph_type = "polygon_Graph";
LGXEnums.LGXGraphType.SplineGraph_type = "spline_Graph";
LGXEnums.LGXGraphType.SvgPathGraph_type = "svgpath_Graph";
LGXEnums.LGXGraphType.SvgRendererGraph_type = "svgobj_Graph";

LGXEnums.LGXGraphType.GraphArray_type = "graphArray_Graph";
LGXEnums.LGXGraphType.ImageGraph_type = "image_Graph";
LGXEnums.LGXGraphType.MoldGraph_type = "mold_Graph";
LGXEnums.LGXGraphType.ArcGraph_type = "arc_Graph";
LGXEnums.LGXGraphType.EllipseArcGraph_type = "ellipseArc_Graph";
LGXEnums.LGXGraphType.ChordGraph_type = "chord_Graph";
LGXEnums.LGXGraphType.PieGraph_type = "pie_Graph";

LGXEnums.LGXGraphType.TerminalGraph_type = "terminal_Graph";
LGXEnums.LGXGraphType.GridGraph_type = "grid_Graph";
LGXEnums.LGXGraphType.CompositGraph_type = "composite_Graph";

LGXEnums.LGXGraphType.CommBusGraph_type = "comline_Graph";
LGXEnums.LGXGraphType.HistgramGraph_type = "histgram_Graph";
LGXEnums.LGXGraphType.PipeLineGraph_Type = "pipeline_Graph";
LGXEnums.LGXGraphType.StatiscalForm_type = "statiscalForm_Graph";
LGXEnums.LGXGraphType.StatiscalCurveChart_type = "curveChart_Graph";//曲线
LGXEnums.LGXGraphType.ArcRingGraph_type = "arcRing_Graph";//饼状图中单元饼图
LGXEnums.LGXGraphType.PieChartGraph_type = "piechart_Graph";//饼状图
LGXEnums.LGXGraphType.TimerCtrl_type = "timer_Graph";
LGXEnums.LGXGraphType.TableList_type = "tabelList_Graph";//表格图
LGXEnums.LGXGraphType.TableCell_type = "tabelCell_Graph";//表格中可编辑单元格子
LGXEnums.LGXGraphType.TwoDot_LineDev_Type = "twoDotLine_Graph";//只有两个坐标点的线
LGXEnums.LGXGraphType.MultiSel_Rect_Type = "multiSelRect_Graph";//用于框选的矩形图

LGXEnums.LGXGraphType.CoordFrame_type = "SymbolDefCenter_type";//定义图符中心的坐标系框架

LGXEnums.LGXGraphType.QuadraticCurve_type = "QuadraticCurve_type";//二次贝塞尔曲线
LGXEnums.LGXGraphType.BezierCurve_type = "BezierCurve_type";//三次贝塞尔曲线

LGXEnums.LGXGraphType.Path_type = "Path_type";//路径对象，由多个简单图形的特征坐标点封闭而成
LGXEnums.LGXGraphType.Auxline_type = "Auxline_type";//辅助线

LGXEnums.LGXGraphType.Cylinder_type = "Cylinder_type";//圆柱
LGXEnums.LGXGraphType.Cube_type = "Cube_type";//立方体

LGXEnums.LGXGraphType.SpecialRect_type = "SpecialRect_type";//立方体

LGXEnums.LGXGraphType.RegularPolygon_type = "RegularPolygon_type";//正多边形
LGXEnums.LGXGraphType.MultiStar_type = "MultiStar_type";//正多边形

LGXEnums.LGXGraphType.FastToolPanel_type = "FastToolPanel_type";//快捷面板
LGXEnums.LGXGraphType.XMindTheme_type = "XMindTheme_type";//xmind主题图形
LGXEnums.LGXGraphType.Hatch_type = "Hatch_type";//cad中填充区域图形

LGXEnums.LGXGraphType.CADText_type = "CADText_type";//cad文本



//标注类
LGXEnums.LGXGraphType.dimLine_type = "dim_line";//线性标注
LGXEnums.LGXGraphType.dimRadius_type = "dim_radius";//半径标注
LGXEnums.LGXGraphType.dimDiameter_type = "dim_diameter";//直径标注
LGXEnums.LGXGraphType.dimAngle_type = "dim_angle";//角度标注
LGXEnums.LGXGraphType.dimAlign_type = "dim_align";//对齐标注
LGXEnums.LGXGraphType.dimArc_type = "dim_arc";//圆弧标注

LGXEnums.LGXGraphType.Combine_type = "combine_Graph";//把图形组合到一起形成一个整体的抽象外框图形
LGXEnums.LGXGraphType.Container_type = "container_Graph";//作为容器的模具，如UML类、界面原型容器控件（列表、树、对话框、group组件）
LGXEnums.LGXGraphType.umlpackage_type = "umlpackage";//UML包
LGXEnums.LGXGraphType.containerItem_type = "containerItem";//U作为容器子组件的模具，如列表项、类成员、树节点、界面子控件

LGXEnums.LGXGraphType.DimTextGraph_type = "dimText_Graph";


LGXEnums.LGXMouseMode = {

}

LGXEnums.LGXMouseMode.mouseMove = "move_mousemode";
LGXEnums.LGXMouseMode.mouseDrag = "drag_mousemode";

LGXEnums.LGXMouseMode.LMouseDown = "LMosDown_mousemode";
LGXEnums.LGXMouseMode.LMouseUp = "LMosUp_mousemode";
LGXEnums.LGXMouseMode.LMouseDbClick = "LMosDBClk_mousemode";

LGXEnums.LGXMouseMode.MMouseDown = "MMosDown_mousemode";
LGXEnums.LGXMouseMode.MMouseUp = "MMosUp_mousemode";

LGXEnums.LGXMouseMode.RMouseDown = "RMosDown_mousemode";
LGXEnums.LGXMouseMode.RMouseUp = "RMosUp_mousemode";

LGXEnums.LGXWorkMode = {

}

LGXEnums.LGXWorkMode.ZoomIn = "zoomin";//放大。外部设置无效，图形内部会自动切换
LGXEnums.LGXWorkMode.ZoomOut = "zoomout";//缩小。外部设置无效，图形内部会自动切换
LGXEnums.LGXWorkMode.WanderMode = "pan";       //漫游，拖动画布
LGXEnums.LGXWorkMode.ModifyMode = "modify";     //普通的修改，选中就可以拖动
LGXEnums.LGXWorkMode.MultiModifyMode = "multi_modify";//框选。在系统处于运行模式时外部设置生效。编辑模式时，由图形自动接管
LGXEnums.LGXWorkMode.QueryMode = "query";      //非编辑模式，
LGXEnums.LGXWorkMode.DrawGraphMode = "plot";       //绘制模式。外部设置无效，图形内部会自动切换
LGXEnums.LGXWorkMode.PickPointMode = "pickpoint";       //拾取点模式
LGXEnums.LGXWorkMode.DimensionMode = "dimension";       //标注模式
LGXEnums.LGXWorkMode.Normal = "normal"; //中间模式，外部设置无效，图形内部会自动切换


LGXEnums.LGXEventKind = {

}


LGXEnums.LGXEventKind.RMouseUpSelGraph = "RMouseUpSelGraph";  //选中图形后鼠标右键弹起
LGXEnums.LGXEventKind.LMouseSelGraph = "LMouseSelGraph"; //修改模式下或者拾取模式下，鼠标左键按下选中图形
LGXEnums.LGXEventKind.RMouseUp = "RMouseUp";//鼠标右键弹起，没选中任何图形
LGXEnums.LGXEventKind.FreshView = "FreshView";//图形控件内部图形刷新事件
LGXEnums.LGXEventKind.TextDrawBegin = "TextDrawBegin";
LGXEnums.LGXEventKind.MultiSelGraph = "MultiSelGraph"; //当前处于多选模式
LGXEnums.LGXEventKind.ArrayCopyFinished = "ArrayCopyFinished"; //阵列复制完成
LGXEnums.LGXEventKind.EditTextOnMap = "EditTextOnMap"; //在画布上直接编辑文本
LGXEnums.LGXEventKind.EndEditTextOnMap = "EndEditTextOnMap"; //结束绘制文本,
LGXEnums.LGXEventKind.CommonINFO = "CommonINFO";//传递图形控件内部的普通信息出去，通过state参数双方做约定，例如当前的可撤销回退状态
LGXEnums.LGXEventKind.StartDrawImageOnMap = "StartDrawImageOnMap";//开始在画布上绘制外部image对象，需要应用层传入图形的URL地址
LGXEnums.LGXEventKind.StartDrawNewTool = "StartDrawNewTool";//开始绘制
LGXEnums.LGXEventKind.FinishDraw = "FinishDraw";//当前图形绘制完成，通知应用层更新命令窗口
LGXEnums.LGXEventKind.InSubEditMode = "InSubEditMode";//处于编辑子模式，如镜像、旋转、平移、修剪....
LGXEnums.LGXEventKind.Respond2PickPoint = "Respond2PickPoint";//回复应用层，坐标点选择完毕
LGXEnums.LGXEventKind.Respond2PickGraph4APP = "Respond2PickGraph4APP";//回复应用层，图形选择完毕
LGXEnums.LGXEventKind.DBClickUMLPackge = "DBClickUMLPackge";//双击UML包，则自动调整到包对应的子图如果子图不存在，则自动创建一个

LGXEnums.LGXModGraphKind = {

}

LGXEnums.LGXModGraphKind.Drag_MAXCount = 10;
LGXEnums.LGXModGraphKind.CommonStSelKind = 5000;
LGXEnums.LGXModGraphKind.Drag_leftTop = 5001;
LGXEnums.LGXModGraphKind.Drag_rightTop = 5002;
LGXEnums.LGXModGraphKind.Drag_RightBottom = 5003;
LGXEnums.LGXModGraphKind.Drag_leftBottom = 5004;

LGXEnums.LGXModGraphKind.Drag_TopMid = 5005;
LGXEnums.LGXModGraphKind.Drag_RightMid = 5006;
LGXEnums.LGXModGraphKind.Drag_BottomMid = 5007;
LGXEnums.LGXModGraphKind.Drag_LeftMid = 5008;

LGXEnums.LGXModGraphKind.Drag_center = 5009;
LGXEnums.LGXModGraphKind.Drag_rotHand = 5010;

//线性渐变填充方向
LGXEnums.LGXLineGradientDirMode= {

}


LGXEnums.LGXLineGradientDirMode.L_TO_R = 'L2R';				//左-右
LGXEnums.LGXLineGradientDirMode.R_TO_L = 'R2L';				//右-左
LGXEnums.LGXLineGradientDirMode.T_TO_B = 'T2B';				//上-下
LGXEnums.LGXLineGradientDirMode.B_TO_T = 'B2T';				//下-上

LGXEnums.LGXLineGradientDirMode.LT_TO_RB = 'LT2RB';				//左上-右下
LGXEnums.LGXLineGradientDirMode.LB_TO_RT = 'LB2RT';				//左下-右上
LGXEnums.LGXLineGradientDirMode.RT_TO_LB = 'RT2LB';				//右上-左下
LGXEnums.LGXLineGradientDirMode.RB_TO_LT = 'RB2LT';				//右下-左上

//线性渐变填充方向
LGXEnums.LGXRadialGradientDirMode = {

}

LGXEnums.LGXRadialGradientDirMode.fromCenter = 'CNT';				//从中心
LGXEnums.LGXRadialGradientDirMode.fromLeftTop = 'LT';				//从左上
LGXEnums.LGXRadialGradientDirMode.fromRightTop = 'RT';				//从右上
LGXEnums.LGXRadialGradientDirMode.fromRightBottom = 'RB';				//从右下
LGXEnums.LGXRadialGradientDirMode.fromLeftBottom = 'LB';				//从左下

LGXEnums.EditMode = {

}
LGXEnums.EditMode.normal = "normal";
LGXEnums.EditMode.rectChamfer = "RectChamfer";
LGXEnums.EditMode.trim = 'trim';
LGXEnums.EditMode.roundChamfer = 'RoundChamfer';
LGXEnums.EditMode.offsetCopy = 'offsetCopy';
LGXEnums.EditMode.rotate = 'rotate';
LGXEnums.EditMode.mirror = 'mirror';
LGXEnums.EditMode.translate = 'translate';
LGXEnums.EditMode.extend = 'extend';
LGXEnums.EditMode.fill = 'fill';
LGXEnums.EditMode.fastDelete = 'fastDelete';
LGXEnums.EditMode.dimention = 'dimention';
LGXEnums.EditMode.scale = 'scale';

LGXEnums.CommCMD = {

}
LGXEnums.CommCMD.END = "E";//end
LGXEnums.CommCMD.ESC = "ESC";
LGXEnums.CommCMD.YES = "Y";//yes
LGXEnums.CommCMD.NO = "N";//no


//标注类型
LGXEnums.DimensionType = {}
LGXEnums.DimensionType.line = "line";//线性标注
LGXEnums.DimensionType.radius = "radius";//半径标注
LGXEnums.DimensionType.diameter = "diameter";//直径标注
LGXEnums.DimensionType.angle = "angle";//角度标注
LGXEnums.DimensionType.align = "align";//对齐标注
LGXEnums.DimensionType.arc = "arc";//弧长标注

//标注可控制的参数类型
LGXEnums.DimControlCoordType = {}
LGXEnums.DimControlCoordType.size = "size";//控制尺寸
LGXEnums.DimControlCoordType.radius = "radius";//控制半径
LGXEnums.DimControlCoordType.point = "point";//控制坐标点

//用于标识标注模式下的子工作状态
LGXEnums.SubDimensionMode = {}
LGXEnums.SubDimensionMode.dimLine = "dimLine";
LGXEnums.SubDimensionMode.dimRadius = "dimRadius";
LGXEnums.SubDimensionMode.dimDiameter = "dimDiameter";
LGXEnums.SubDimensionMode.dimAngle = "dimAngle";
LGXEnums.SubDimensionMode.dimAlign = "dimAlign";
LGXEnums.SubDimensionMode.dimArc = "dimArc";
LGXEnums.SubDimensionMode.dimContinue = "dimContinue";


//标注基准类型
LGXEnums.DimDatumType = {}
LGXEnums.DimDatumType.pt = "pt"; //普通坐标点，data = {x,y}
LGXEnums.DimDatumType.vertex = "vertex"; //顶点，如线段端点、圆弧端点、圆四个特征点。数据：data = {idx:i,x:10,y:20}
LGXEnums.DimDatumType.center = "center";//图形中心，数据：data = {x:10,y:20}
LGXEnums.DimDatumType.midpt = "midpt";//线段或圆弧段中心点，数据：data = {stIdx:1,endIdx:2,x:10,y:20};
LGXEnums.DimDatumType.edge = "edge"; //由线段组成的图形的边缘，包括坐标轴。data = {stIdx:1,endIdx:2,st:{x,y},end:{x,y}}; 

LGXEnums.ArcPlotMode = {}
LGXEnums.ArcPlotMode.Point3Mode = "Point3Mode";
LGXEnums.ArcPlotMode.CenterAngleMode = "CenterAngleMode";

LGXEnums.runningMode = {}
LGXEnums.runningMode.none = "none";
LGXEnums.runningMode.prototype = "prototype";
LGXEnums.runningMode.monitor = "monitor";
LGXEnums.runningMode.game = "game";

LGXEnums.moldActionType = {}
LGXEnums.moldActionType.common = 0;
LGXEnums.moldActionType.container = 1;
LGXEnums.moldActionType.item = 2;
LGXEnums.moldActionType.packege = 3;

LGXEnums.XMindThemeType = {}
LGXEnums.XMindThemeType.trunck = "trunck";//中心主题
LGXEnums.XMindThemeType.branch = "branch";//分支主题
LGXEnums.XMindThemeType.child = "child";//子主题

//线路显示类型
LGXEnums.lineVisionType = {}
LGXEnums.lineVisionType.cross = 'cross';//正交
LGXEnums.lineVisionType.straight = 'straight';//直线
LGXEnums.lineVisionType.curve = 'curve';//曲线

LGXEnums.xmindStruType = {}
LGXEnums.xmindStruType.balance = 'balance'//平衡结构
LGXEnums.xmindStruType.toLeft = 'toLeft'//向左结构
LGXEnums.xmindStruType.toRight = 'toRight'//向右结构

LGXEnums.AuxPointKind = {}

LGXEnums.AuxPointKind.none = "none";
LGXEnums.AuxPointKind.end = "end";//端点
LGXEnums.AuxPointKind.lineMid = "lineMid"; //线段中点
LGXEnums.AuxPointKind.center = "center";//圆心
LGXEnums.AuxPointKind.tangentPt = "tangentPt";//圆上切点
LGXEnums.AuxPointKind.commonPt = "commonPt";//图上无特殊意义的普通点
LGXEnums.AuxPointKind.cross = "cross";//图形交点


//填充区域边界枚举
LGXEnums.HatchBoundaryType = {}
LGXEnums.HatchBoundaryType.line = "line";
LGXEnums.HatchBoundaryType.arc = "arc";
LGXEnums.HatchBoundaryType.spline = "spline";
LGXEnums.HatchBoundaryType.ellipseArc = "ellipseArc";
LGXEnums.HatchBoundaryType.lwpolyline = "lwpolyline";

export  { LGXEnums }